﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using YuuzleComic.DBUtility;

public partial class support_report : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void btnSend_Click(object sender, EventArgs e)
    {
        try
        {
            SqlParameter[] parameters = new SqlParameter[]{ 
                new SqlParameter("@stType",Request.Form["stType"]),
                new SqlParameter("@stServer",Request.Form["stServer"]),
                new SqlParameter("@url",Request.Form["txtUrl"]),
                new SqlParameter("@intro",Request["txtIntro"]),
                new SqlParameter("@contact",Request["txtContact"])
            };
            DbHelperSQL.ExecuteSql("insert into report values(@stType,@stServer,@url,@intro,@contact,getDate())", parameters);
            Response.Write("<script>alert('报送成功！');window.close();</script>");
        }
        catch (Exception ex)
        {
            Response.Write("<script>alert('报送失败！请稍后再试！');window.close();</script>");
        }
    }
}